<?php
include '../config/db_config.php';
include '../lib/kelola_technopreneur.php';
session_start();
if(!isset($_SESSION)){
	header('location:login.php');
	//var_dump($_SESSION);
}
$kelola_technopreneur = new kelola_technopreneur();
$result = $kelola_technopreneur->select_technopreneur($_SESSION['ID_TECHNOPRENEUR']);

while ($row = mysql_fetch_assoc($result)) {
	$nama = $row['NAMA'];
	$email = $row['EMAIL_TECHNOPRENEUR'];
	$telp = $row['NO_TELP'];
	$alamat = $row['ALAMAT'];
	$deskripsi = $row['DESKRIPSI_TECHNOPRENEUR'];}
?>
<html>
<head>
    <title>Smart Commerce</title>
    <link href="../css/bootstrap.min.css" rel="stylesheet">
	<style type="text/css">
      body {
        padding-top: 60px;
        padding-bottom: 40px;
      }
    </style>
    <link href="../css/bootstrap-responsive.min.css" rel="stylesheet">
</head>
<body>
	<div class="navbar navbar-inverse navbar-fixed-top">
		<div class="navbar-inner">
			<div class="container">
			<a class="btn btn-navbar" data-toggle="collapse" data-target=".nav-collapse">
            <span class="icon-bar"></span>
            <span class="icon-bar"></span>
            <span class="icon-bar"></span>
			</a>
			
			<a class="brand" href="home_technopreneur.php">Beranda</a>
			<a class="brand">Tentang Kami</a>
			<a class="brand">Kontak</a>
			
				<div class="nav-collapse collapse">
				<form class="navbar-form pull-right" method="post">
				</form>
			<div class="navbar-form pull-right">
				<a href="profil_technopreneur.php" class="btn btn-small btn-primary">Profil</a>
				<a href="../logout.php" class="btn btn-small btn-primary">Logout</a>
			</div>
				
			    </div>
			</div>
		</div>
    </div>
	
	<div class="container">
		<div class="hero-unit"style="background-image:url('../images/header.jpg');" >
			<h1>Smart Commerce</h1>
			<blockquote class="pull-right"> 
				<p>Website khusus Technopreneur Surabaya</p>
			</blockquote>
		</div>
			
		<ul class="breadcrumb">
			<li><a href="home_technopreneur.php">Home</a> <span class="divider">/</span></li>
			<li class="active">Profil</li>
		</ul>
	
		<?php
		if (!empty($_GET['message']) && $_GET['message'] == 'success') {
		echo '<div class="alert alert-success">Data berhasil diperbaharui!<button class="close" data-dismiss="alert">&times;</button></div>';
		}
		?>
	
		<h3><center> Profil Technopreneur</center></h3>
				<div class="span10">
				<table style='margin-left:50px'>
						<tr>
							<td><strong>Nama</strong></td>
							<td>:</td>
							<td> <?php echo $nama; ?> </td>
						</tr>
						<tr>
							<td><strong>Email</strong></td>
							<td>:</td>
							<td> <?php echo $email; ?> </td>
						</tr>
						<tr>
							<td><strong>No.Telp</strong></td>
							<td>:</td>
							<td> <?php echo $telp; ?> </td>
						</tr>
						<tr>
							<td><strong>Alamat</strong></td>
							<td>:</td>
							<td> <?php echo $alamat; ?></td>
						</tr>
						<tr>
							<td><strong>Deskripsi</strong></td>
							<td>:</td>
							<td> <?php echo $deskripsi; ?> </td>
						</tr>
				  </table>
				  <br>
				  <a class="btn btn-primary pull-right" type="button" href="edit_profil.php">Edit Profil</a>
				  </div>
	</div>
</body>
</html>